<?php
/**
 * Created by : PhpStorm
 * User: ZPF
 * Date: 2022/3/30
 * Time: 22:53
 */

namespace app\admin\model;


use think\facade\Validate;
use think\Model;

class ModuleModel extends Model
{
    protected $name='module';
    protected static $rule = [
        "module_name" => "request",
        "controller" => "request",
        "action" => "request",
    ];
    /**
     * 模块列表
     * @param array $where
     * @param int $page
     * @param int $limit
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function index()
    {
        $list = static::field('id,module_name')->select()->toArray();
        return $list;
    }

}
